package dao

import "encoding/json"

type SystemAlarm struct {
	BaseModel
	DeviceName   string
	Info         string
	AlarmTime    BaseTime
	HandleStatus int
	HandleTime   BaseTime
}

func (c *SystemAlarm) TableName() string {
	return "system_alarm"
}

func (c *SystemAlarm) ToJsonStr() string {
	marshal, err := json.Marshal(c)
	if err != nil {
		return ""
	}
	return string(marshal)
}
